import request from '@/utils/request'

// 查询热门商品订单数量统计
export function getPopularGoodsByQuantity(query) {
  return request({
    url: '/csmshop/orderStatistic/popularGoodsByQuantity',
    method: 'get',
    params: query
  })
}

// 查询热门商品订单金额统计
export function getPopularGoodsByAmount(query) {
  return request({
    url: '/csmshop/orderStatistic/popularGoodsByAmount',
    method: 'get',
    params: query
  })
}

// 查询交易概况统计
export function getTransactionOverview(query) {
  return request({
    url: '/csmshop/orderStatistic/transactionOverview',
    method: 'get',
    params: query
  })
}

// 查询交易趋势统计
export function getTransactionTrend(query) {
  return request({
    url: '/csmshop/orderStatistic/transactionTrend',
    method: 'get',
    params: query
  })
}

// 查询订单详情列表
export function getOrderDetailList(query) {
  return request({
    url: '/csmshop/orderStatistic/orderDetailList',
    method: 'get',
    params: query
  })
}

// 查询退单详情列表
export function getRefundDetailList(query) {
  return request({
    url: '/csmshop/orderStatistic/refundDetailList',
    method: 'get',
    params: query
  })
} 